import request from '@/utils/request'

// 查询我的活动列表
export function listMyActivity(query) {
  return request({
    url: '/gxs/myActivity/list',
    method: 'get',
    params: query
  })
}

// 查询我的活动详细
export function getMyActivity(gxsPendActivityid) {
  return request({
    url: '/gxs/myActivity/' + gxsPendActivityid,
    method: 'get'
  })
}

// 新增我的活动
export function addMyActivity(data) {
  return request({
    url: '/gxs/myActivity',
    method: 'post',
    data: data
  })
}

// 修改我的活动
export function updateMyActivity(data) {
  return request({
    url: '/gxs/myActivity',
    method: 'put',
    data: data
  })
}

// 删除我的活动
export function delMyActivity(gxsPendActivityid) {
  return request({
    url: '/gxs/myActivity/' + gxsPendActivityid,
    method: 'delete'
  })
}
